function Get-OLEDBData 
{
    param($ConnectionString, $sql)

   $OLEDBConn = New-Object System.Data.OleDb.OleDbConnection($ConnectionString)
   $OLEDBConn.open()
   $readcmd = New-Object system.Data.OleDb.OleDbCommand($sql,$OLEDBConn)
   $readcmd.CommandTimeout = '300'
   $da = New-Object system.Data.OleDb.OleDbDataAdapter($readcmd)
   $dt = New-Object system.Data.datatable
   [void]$da.fill($dt)
   $OLEDBConn.close()
   Write-Output $dt
}
